﻿<%@ Page Language="C#" Async="true" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs"
    Inherits="EpiPoker._Default" EnableEventValidation="true" %>

<%@ Import Namespace="System.Data" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxtoolkit" %>
<%@ Register Assembly="Facebook.WebControls" Namespace="Facebook.WebControls" TagPrefix="cc1" %>
<asp:Content ID="content1" ContentPlaceHolderID="MainContent" runat="server">
<div id="fb-root"></div>
        <script src="http://connect.facebook.net/en_US/all.js" type="text/javascript"></script>
        <script type="text/javascript">
            FB.init({
                appId: '846205df6de51f82e14f5e2eb5f7e689',
                status: true, // check login status
                cookie: true, // enable cookies to allow the server to access the session
                xfbml: true  // parse XFBML
            });

            function inviteFriend() {
                FB.ui({ method: 'apprequests', message: 'Go use this application !' });
            }

            function challengeFriend() {
                FB.ui({ method: 'feed', message: 'Come challenge me !' });
            }
        </script>
    <div id="content">
        <div id="left">
            <div class="title">
            </div>
            <asp:DataGrid ID="datagrid1" runat="server" CssClass="grid" AutoGenerateColumns="False"
                OnItemCommand="datagrid1_ItemCommand" BorderWidth="0" HeaderStyle-CssClass="head"
                ItemStyle-CssClass="item" FooterStyle-CssClass="foot">
                <Columns>
                    <asp:BoundColumn DataField="N° Table" ReadOnly="true" ItemStyle-CssClass="num" />
                    <asp:BoundColumn DataField="TypeTable" ReadOnly="true" ItemStyle-CssClass="table" />
                    <asp:BoundColumn DataField="Blind" ReadOnly="true" ItemStyle-CssClass="blind" />
                    <asp:BoundColumn DataField="Players" ReadOnly="true" ItemStyle-CssClass="player" />
                    <asp:ButtonColumn ButtonType="LinkButton" Text="" CommandName="GoToTable"
                        ItemStyle-CssClass="button" />
                </Columns>
            </asp:DataGrid>
            <div class="botl">
            </div>
            <div class="botm">
            </div>
            <div class="botr">
            </div>
        </div>
        <div id="right">
            <a id="invite" onclick="inviteFriend()">Invite Friends!</a>
            <a id="challenge" onclick="challengeFriend()">Challenge Friends!</a>
        </div>
        <div id="clear">
        </div>
        <asp:Label ID="UserName" runat="server"></asp:Label>
    </div>
</asp:Content>
